package cn.trda.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.trda.mapper.AsFunctionMapper;
import cn.trda.pojo.Function;
import cn.trda.pojo.FunctionExt;
import cn.trda.service.FunctionService;
@Service
public class FunctionServiceImpl implements FunctionService {
	//private static final Logger logger = Logger.getLogger(AsFunctionServiceImpl.class);
	@Autowired
	private AsFunctionMapper asFunctionMapper;
	
	@Override
	public List<Function> getFunctionByRoleId(Long roleid) {
		// TODO Auto-generated method stub
		//logger.debug("数据库查询role_function ----roleid:"+roleid);
		return asFunctionMapper.getFunctionByRoleId(roleid);
	}

	@Override
	public List<FunctionExt> selectAllFunctions() {
		// TODO Auto-generated method stub
		return asFunctionMapper.selectAllFunctions();
	}

}
